package Vocabulary;

import Vocabulary.Mapper.WordMapper;
import org.apache.ibatis.session.SqlSession;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import org.junit.jupiter.api.Test;


import java.net.URL;
import java.util.List;

public class W {
    public static void main(String[] args) throws Exception {
        Document parse = Jsoup.parse(new URL("https://wordforest.cn/book?id=7"), 6000);
        Elements wordMainList = parse.getElementsByClass("is-pos");
        System.out.println("结果"+wordMainList);
    }
    @Test
    public void T(){
        SqlSession sqlSession = MybatisUtils.getSqlSession();
        WordMapper wordMapper = sqlSession.getMapper(WordMapper.class);
        System.out.println(wordMapper.getWordsByKey("解释"));
    }
}
